xend: Fix file resouce leak on resume of suspended managed domains.
authorKeir Fraser <keir@xensource.com>
Fri, 12 Oct 2007 13:30:41 +0000 (14:30 +0100)
committerKeir Fraser <keir@xensource.com>
Fri, 12 Oct 2007 13:30:41 +0000 (14:30 +0100)
commite972f8be188f10d70266d3e1b3735a57dbd23b44
treebdc641e21ba3e7e3732256a95685c38403e50697
parent4029f2451aed7b3d561eb5168f461cf50ac4196d
xend: Fix file resouce leak on resume of suspended managed domains.

When a suspended managed domain is resumed, the checkpoint file is
removed, but xend retains a reference to the removed file. This
represents a resource leak. Fixed by ensuring that the file reference
is closed correctly.

Signed-off-by: Gary Pennington <gary.pennington@sun.com>
tools/python/xen/xend/XendDomain.py